package test.task.fun.service;

import android.content.Context;
import android.content.SharedPreferences;

public class PreferenceAdapter {
	private static final String GOODS_POSITIONS = null;

	private final SharedPreferences mPrefs;
	private final static String PREFS_FILE = "fun";

	public PreferenceAdapter(Context context) {
		mPrefs = context.getSharedPreferences(PREFS_FILE, Context.MODE_PRIVATE);
	}

	public void saveString(String string) {
		SharedPreferences.Editor editor = mPrefs.edit();
		editor.putString(GOODS_POSITIONS, string);
		editor.commit();
	}

	public String getString() {
		return mPrefs.getString(GOODS_POSITIONS, null);
	}

}
